<?php
	include "core/mysql.php";
  session_start();
  $ara = $_SESSION['name'];
  $ere =$_SESSION['touxiang_img'];
  $comment=$_GET['comment'];
  $time=$_GET['time'];
  $list_id=$_GET['list_id'];
  //插入评论
 $sql="INSERT INTO tbl_comment (`comment`,comment_img,comment_name,`time`,Fabulous,list_id)VALUES('$comment','$ere','$ara','$time',0,'$list_id')";
 query($sql);
 //返回最新的评论
 $sql="select * from tbl_comment where list_id=$list_id order by id desc";
 $res = fetchAll($sql);//查询的方法


?>